package main

import (
	"core"
)

type Hello struct {
}

type Temp struct {
	Name  string `json:"name"`
	Value int    `json:"value"`
}

func (this *Hello) Handle(request *core.HttpRequest) *core.HttpResponse {
	return &core.HttpResponse{
		"static/hello.html",
		Temp{"name", 100},
		core.TEMPLATE,
	}
}

func main() {
	server := &core.Server{Port: 9000}
	server.AddController("/hello", &Hello{})
	server.Start()
}
